html,
body,
:global(#root) {
  height: 100%;
}

:global(.ant-layout) {
  min-height: 100%;
}

canvas {
  display: block;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

// temp fix for https://github.com/ant-design/ant-design/commit/a1fafb5b727b62cb0be29ce6e9eca8f579d4f8b7
:global {

  // .ant-modal {
  //   width: calc(100% - 200px)!important
  // }

  .ant-modal-close-x {
    display: none;
  }

  // .addSku .ant-modal {
  //   min-height: auto!important;
  //   height: auto!important;
  // }

  .ant-modal-footer {
    border-top: none;
  }

  @media screen and (max-width: 1000px) {
    .ant-modal-wrap {
      top: 0!important;
      left: 0px!important;
      right: 0px!important;
    }
  }

  @media screen and (min-width: 1001px) {
    .ant-modal-wrap {
      left: 210px!important;
      right: 20px!important;
    }
  }

  // .ant-pagination {
  //   display: none!important;
  // }
  .ant-table-pagination.ant-pagination {
    display: none;
  }

  .ant-spin-container {
    overflow: visible !important;
  }

  .global-spin {
    width: 100%;
    margin: 40px 0 !important;
  }

  .ant-form-item-label {
    // padding: 8px 0!important;
  }

  .formArea {
    margin: 10px 0;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 0 1px 0 #F4F4F4;
    box-shadow: 1px 1px 3px #555;
  }

  .ant-input-lg {
    font-size: 15px!important;
    height: 36px!important;
  }

  label {
    font-size: 15px!important;
    color: rgba(0, 0, 0, 0.45)!important;
  }

  .ant-table-content {
    background: #fff!important;
  }

  // 提交按钮一系列按钮
  .formArea .ant-btn-lg {
    width: 92px;
    height: 36px!important;
  }

  .formTitle {
    position: relative;
    padding: 0 0 0 10px;
    height: 50px;
    line-height: 50px;
    font-size: 14px;
    background: #f5f5f5;
    color: #333;
    box-shadow: -1px -1px 1px #E5E5E5;
  }

  .ant-table td { 
    // white-space: nowrap; 
  }

  // ::-webkit-scrollbar {
  //   /*隐藏滚轮*/
  //   display: none;
  //   }
  
  //去除角标
  .react-resizable-handle {
      background: url("")!important;
  }

  //表格的样式
  .ant-table-bordered .ant-table-thead > tr > th {
    text-align: center;
    background: #fff;
  }

  .ant-table-bordered .ant-table-tbody > tr > td {
    font-size: 13px!important;
    text-align: center;
  }

  //设置字体大小
  .ant-btn {
    margin-right: 5px;
    font-size: 13px!important;
  }

  .likeButton {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-block;
    width: 80px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    color: #fff;
    background: #1abc9c;
    border-radius: 4px;
    cursor: pointer;
  }

  .likeButton:hover {
    background: rgba(0, 0, 0, 0.45);
  }

  // 标题头部
  .pageTitle {
    margin: 0 0 10px 0;
    padding: 0 0 0 10px;
    height: 50px;
    line-height: 50px;
    font-size: 16px;
    color: #555;
    background: #fff;
    border-left: 8px solid #1abc9c;
  }

  //全局设置模态框的头部颜色
  .ant-modal-header {
    background: #1abc9c!important;
  }

  .ant-modal-title {
    color: #fff!important;
  }
  .ant-modal-close-x:before {
    color: #fff;
  }

  // 详情页面显示数据(列表类型)
  .ant-list-header {
    font-size: 16px;
    color: #1abc9c;
    font-weight: bold;
  }

  .ant-list {
    background: #fff;
  }

  .ant-list-item {
    min-height: 50px;
    padding-top: 0!important;
    padding-bottom: 0!important;
  }

  .listContent {
    padding-left: 10px;
    width: 80%;
  }

  .listTitle {
    color: #1abc9c;
  }

  .ant-list-bordered .ant-list-item {
    border-bottom: 1px solid #d9d9d9!important;
  }

  .ant-list-split .ant-list-header {
    border-bottom: 1px solid #d9d9d9!important;
  }

  @media screen and (max-width: 300px) {
    .listTitle {
      padding-right: 10px;
      width: 100px;
      font-size: 12px;
      text-align: right;
      box-sizing: border-box;
      border-right: 1px solid #d9d9d9;
    }
    
    //分页文本显示
    .ant-pagination-total-text {
      font-size: 12px;
    }

    //分页表头设置
    .ant-table-thead {
      font-size: 13px!important;
    }
  }

  @media screen and (min-width: 301px) and (max-width: 600px) {
    .listTitle {
      padding-right: 10px;
      width: 100px;
      font-size: 13px;
      text-align: right;
      box-sizing: border-box;
      border-right: 1px solid #d9d9d9;
    }

    //分页文本显示
    .ant-pagination-total-text {
      font-size: 12px;
    }

    //分页表头设置
    .ant-table-thead {
      font-size: 13px!important;
    }
  }

  @media screen and (min-width: 601px) {
    .listTitle {
      padding-right: 10px;
      width: 200px;
      font-size: 15px;
      text-align: right;
      box-sizing: border-box;
      border-right: 1px solid #d9d9d9;
    }
    
    //分页文本显示
    .ant-pagination-total-text {
      font-size: 13px;
    }

    //分页表头设置
    .ant-table-thead {
      font-size: 14px!important;
    }
  }

  //允许换行
  .can-wrap {
    word-wrap:break-word ;
  }

  .ant-list-item-content {
    align-items: center;
  }

  // 返回
  .backTop {
    margin: 10px 0;
    font-size: 14px;
    color: #fff;
    box-sizing: border-box;
  }

  .backButton {
    display: inline-block;
    height: 36px;
    line-height: 36px;
    width: 100px;
    text-align: center;
    font-size: 13px;
    cursor: pointer;
    background: #1abc9c;
    border-radius: 10px;
  }

  .backButton:hover {
    font-size: 12px;
    background: #388E8E;
  }


}
